package com.hbnu.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hbnu.system.model.entity.Art;
import com.hbnu.system.model.entity.User;
import com.hbnu.system.model.query.ArtPageQuery;
import com.hbnu.system.model.vo.ArtVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2023-05-16
 */
public interface ArtMapper extends BaseMapper<Art> {
    IPage<ArtVO> schoolGetRelateArtQuery(
            @Param("page") Page<ArtVO> page,
            @Param("artPageQuery") ArtPageQuery query,
            @Param("user") User user
    );

    // 院级审核员查询：指定参数名为page、artPageQuery、dept
    IPage<ArtVO> collegeGetRelateArtQuery(
            @Param("page") Page<ArtVO> page,
            @Param("artPageQuery") ArtPageQuery query,
            @Param("user") User user
    );

    // 用户查询：指定参数名为page、artPageQuery、userId
    IPage<ArtVO> userGetRelateArtQuery(
            @Param("page") Page<ArtVO> page,
            @Param("artPageQuery") ArtPageQuery query,
            @Param("user") User user
    );


    IPage<Art> schoolExportRelateArtQuery(
            @Param("page") Page<Art> page,
            @Param("artPageQuery") ArtPageQuery query,
            @Param("user") User user
    );

    IPage<Art> collegeExportRelateArtQuery(
            @Param("page") Page<Art> page,
            @Param("artPageQuery") ArtPageQuery query,
            @Param("user") User user
    );

    IPage<Art> userExportRelateArtQuery(
            @Param("page") Page<Art> page,
            @Param("artPageQuery") ArtPageQuery query,
            @Param("user") User user
    );
    
    
    
}
